package com.youkeyi.ddy.cloud.common.api.application.system.server;

import com.youkeyi.ddy.cloud.common.api.application.system.server.dto.SystemServerListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.server.param.SystemServerCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.server.param.SystemServerDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.server.param.SystemServerListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.server.param.SystemServerUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemServerCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/server/fallback")
public class SystemServerCloudServiceFallback implements SystemServerCloudService {

    @Override
    public SystemServerListCloudDto list(SystemServerListCloudParam param) {
        return new SystemServerListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(SystemServerCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(SystemServerUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemServerDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
